package dletc.job.job01;

public class China {

	int x;
	int y;
	
	
	public China() {
		this.x = 10;
		this.y = 10;
	}
	

	public China( int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public void f(LiaoNing liao){
		System.out.println("我是中国");
		liao.speak();
	}
	
	static class LiaoNing{
		int z;
		
		public LiaoNing() {
			this.z = 10;
		}
		
		public LiaoNing(int z) {
			super();
			this.z = z;
		}

		public void g(China china,LiaoNing liao){
			 
			z = china.x + china.y;
			
			china.f(liao);
		}
		
		public void speak(){
			System.out.println("我是大连，z =" + z);
		}
	}

}
